package com.cmsz.xpay.common.unionpay.sign;
/**
 * 银联签名验签所需常量
 * @author Eshin
 *
 */
public class UnionPayConstants {
	
	/** memeber variable: blank. */
	public final static String BLANK = "";
	
	/** memeber variable: slash. */
	public final static String SLASH = "/";

	/** memeber variable: div. */
	public final static String DIV = "/";

	/** memeber variable: equal mark. */
	public static final String EQUAL = "=";

	/** memeber variable: AMPERSAND. */
	public static final String AMPERSAND = "&";
	
	/** memeber variable: 0. */
	public static final int ZERO = 0;

	/** memeber variable: string true. */
	public static final String TRUE_STRING = "true";
	/** memeber variable: string false. */
	public static final String FALSE_STRING = "false";

	public static final String UTF_8_ENCODING = "UTF-8";
	public static final String GBK_ENCODING = "GBK";
	/** 证书类型： PKCS12.*/
	public final static String CERT_TYPE_PKCS12 = "PKCS12";
	/** 证书类型： JKS.*/
	public final static String CERT_TYPE_JKS = "JKS";
	/** 算法常量： MD5.*/
	public static final String ALGORITHM_MD5 = "MD5";
	/** 算法常量： SHA1.*/
	public static final String ALGORITHM_SHA1 = "SHA-1";
	/** 算法常量：SHA1withRSA.*/
	public static final String BC_PROV_ALGORITHM_SHA1RSA = "SHA1withRSA";
	
	/******************************************** 5.0报文接口定义 ********************************************/
	/** 版本号. */
	public static final String PARAM_VERSION = "version";
	/** 证书ID. */
	public static final String PARAM_CERTID = "certId";
	/** 签名. */
	public static final String PARAM_SIGNATURE = "signature";
	/** 编码方式. */
	public static final String PARAM_ENCODING = "encoding";
	
	/******************************************** 5.0报文接口实际固定参数 ********************************************/
	/** 版本号. */
	public static final String VERSION = "5.0.0";
	/** 编码方式. */
	public static final String ENCODING = "UTF-8";
	/** 签名方法. */
	public static final String SIGNMETHOD = "01";
	/** 接入类型. */
	public static final String ACCESSTYPE = "0";
	
	

}
